import ajax from "../utils/request"

// 获取轮播图列表
export function getBannerList() { 
    return ajax({ url: '/banner/list' })
}

// 更新轮播图显示状态
export function updateBannerStatusFn(data) { 
    return ajax({ url: '/banner/updateFlag', method: 'post', data })
}

// 添加轮播图
export function addBannerFn(data) { 
    return ajax({ url: '/banner/add', method: 'posT', data })
}

// 删除轮播图
export function deleteBannerFn(bannerid) { 
    return ajax({ url: '/banner/delete', method: 'get', data:{bannerid} })
}